package cn.com.youjile.utils;

import cn.com.youjile.entity.MsgInfo;

/**
 * @Author youjile
 * @CreateDate 2021/3/12
 * @Describe
 */
public class MsgInfoFactory {

    /**
     * 创建消息体
     * @param code  消息编号
     * @param info  消息内容
     * @return MessageInfo 消息对象
     */
    public static MsgInfo buildMessageInfo(int code, byte[] info) {
        return new MsgInfo(code, info);
    }


}
